<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<%@ include file="/common/taglibs.jsp"%>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=10;IE=9; IE=8; IE=EDGE" />
<title>食堂物资管理系统</title>
<link rel="stylesheet" type="text/css" href="css/common.css" />
<link rel="stylesheet" type="text/css" href="css/icon.css" />
<link rel="stylesheet" type="text/css" href="css/plugin/jquery.treeview.css" />
<link rel="stylesheet" type="text/css" href="css/plugin/jquery.colorbox.css" />
<script type="text/javascript">
var ctxpath = '${ctx }';
</script>
<script type="text/javascript" src="js/jquery-mini-1.7.2.js"></script>
<script type="text/javascript" src="js/plugin/jquery.treeview.js"></script>
<script type="text/javascript" src="js/plugin/jquery.colorbox-min.js"></script>
<script type="text/javascript" src="js/common/sys.const.js"></script>
<script type="text/javascript" src="js/common/sys.common.js"></script>
<script type="text/javascript" src="js/menu/sys.menu.js"></script>
<script type="text/javascript" src="js/common/password.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('#treeview').treeview({
		theme : 'bbit-tree-arrows',
		data : treedata,
		onnodeclick : function(item) {
			if (item.id == sys.menu.id.supplier) {
				location.href = sys.url.supplierMain;
			} else if (item.id == sys.menu.id.fodder) {
				location.href = sys.url.fodderMain;
			} else if (item.id == sys.menu.id.cook) {
				location.href = sys.url.cookMain;
			} else if (item.id == sys.menu.id.stock) {
				location.href = sys.url.stockMain;
			} else if (item.id == sys.menu.id.stock_query) {
				location.href = sys.url.stockQuery;
			} else if (item.id == sys.menu.id.instock) {
				location.href = sys.url.instockMain;
			} else if (item.id == sys.menu.id.instock_query) {
				location.href = sys.url.instockQuery;
			} else if (item.id == sys.menu.id.user) {
				location.href = sys.url.userMain;
			} else if (item.id == sys.menu.id.authority) {
				location.href = sys.url.authorityMain;
			} else if (item.id == sys.menu.id.password) {
				location.href = sys.url.editPwd;
			} else if (item.id == sys.menu.id.exit) {
				location.href = sys.url.logout;
			}
		}
	});
});
</script>
<decorator:head />
</head>
<body>
	<div class="sys_layout_top"><jsp:include page="/common/top.jsp"></jsp:include></div>
	
	<div class="sys_layout_center">
		<div class="sys_layout_left"><jsp:include page="/common/sys_menu.jsp"></jsp:include></div>
		<div class="sys_layout_right">
			<decorator:body />
		</div>
		<div class="clear"></div>
	</div>
	
	<div class="sys_layout_footer"><jsp:include page="/common/footer.jsp"></jsp:include></div>
</body>
</html>
